package cn.silver.module.system.bean;

import cn.silver.framework.mybatis.annotation.TableField;
import cn.silver.framework.mybatis.bean.TreeBean;
import cn.silver.framework.mybatis.enums.SearchEnums;
import cn.silver.module.system.domain.SysDept;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * 部门视图对象 sys_dept
 *
 * @author Silver Zhou
 */
@Data
@NoArgsConstructor
@AutoMapper(target = SysDept.class)
@EqualsAndHashCode(callSuper = true)
@Schema(name = "DeptBean", title = "组织信息对象")
public class DeptBean extends TreeBean<DeptBean> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(title = "组织全称")
    private String full;

    @Schema(title = "组织类型")
    @TableField(name = "type", searchType = SearchEnums.EQ)
    private String type;
}
